package com.ark.cloud.java.persistence.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;

/**
 * Copyright(c): 2021 Cloud-Ark Inc.
 * Author(s): Ma Wei (mawei@cloud-ark.com)
 */

/**
 * 传感器数据
 */
@Data
@TableName("sensor_data")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SensorData {

    @TableField("id")
    private Long sensorDataId;  // 主键

    @TableField("timestamp")
    private String timestamp;           // 时间

    @TableField("entity_id")
    private String id;                      // 唯一标识

    @TableField("db_id")
    private int dbId;                  // 在MySQL数据库DataSensor表中的id

    @TableField("entity_name")
    private String name;                 // 名称

    @TableField("host_id")
    private String hostId;              // 父平台ID
    @TableField("damaged")
    private float damaged;             // 毁伤程度
    @TableField("emitter_number")
    private short emitterNumber;       // 包络数量


//    private SensorObj sensorObj;  // 传感器基础信息
//
    private ArrayList<Beam> Beams;   // 包络定义
//
//    @TableField("id")
//    private Long id;             //自增主键
//
//    @TableField("timestamp")
//    private String timestamp;           // 时间
//
//    @TableField("sensorobj_id")
//    private Long sensorObj_Id;       //用于关联传感器基础信息


}
